"""takes URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from customer.views import *

urlpatterns = [
    # 获取手机验证码接口
    path('sms/<str:mobile>/',SmsView.as_view()),
    # 图片验证码的接口
    path("image_code/<str:uuid>/", ImageCodeAPIView.as_view()),
    # 手机号验证码登入
    path('login/',UserView.as_view()),
    # 添加获取取消收藏
    path('collect/',CollectView.as_view()),
    # 获取单个收藏
    path('collect/info/',CollectInfoView.as_view()),
    # 获取添加修改用户收获地址
    path('addruser/',UserAddressView.as_view()),
    # 获取单个地址
    path('addruser/<int:id>/',UserAddressInfoView.as_view()),
    # 获取默认地址
    path('daar/',DefaultAddressInfoView.as_view()),
    # 获取用户优惠券
    path('wuser/',ShowuserCoupon.as_view()),
    # 七牛云获取token
    path('token/',QNYtoken.as_view()),
    # 获取用户信息
    path('userinfo/',Show_userInfo.as_view()),
    # 获取Vip
    path('vip/',VipListView.as_view()),
    # 获取所有订单 生成订单 删除订单
    path('order/',Add_OrderView.as_view()),
    # 支付成功回调
    path('paynotify/',PayNotifyView.as_view()),
    # 获取支付成功记录
    path('orderrecord/',OrderRecordView.as_view()),
    # 评论
    path('comment/',CommentView.as_view()),
    # 通过手机号获取头像
    path('mobile/img/<str:mobile>/',MobileView.as_view()),




]
